/** Author: R.Brause, August 2013, Goethe-University, Frankfurt/Main, Germany This method computes the Medan score, based on the input values for systolic blood pressure, diastolic blood pressure and the thrombocyte value. The return result is TRUE if there is an alarm. */ public static boolean RRT_alarm(float RRTsys, float RRTdia, float Thromb){ int score = 0, sc; boolean alarm; float[] Rs = {119,151,221,251,265}; for (sc = 0; sc < Rs.length; ) { // systolic blood pressure score if (RRTsys <= Rs[sc]) break; sc++; } score = score + sc; float[] Rt = {42,47,49,64,83,117,121,126}; for (sc = 0; sc < Rt.length; ) { // diastolic blood pressure score if (RRTdia <= Rt[sc]) break; sc++; } score = score + sc; float[] Tr = {112,202,312,371,621,770}; for (sc = 0; sc < Tr.length; ) { // thrombocythe concentration score if (Thromb <= Tr[sc]) break; sc++; } score = score + sc; alarm = (score < 6); return alarm; // return ALARM = TRUE for a score < 6 } // end RRT_score